package org.southyin.ioc.test02;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
        Warrior warrior = context.getBean("warrior", Warrior.class);
        System.out.println(warrior);
    }
}
